import request from '@/utils/request';

/**
 * 用户管理 用户列表
 * @param data
 * @returns
 */
export const getUserList = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/list',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 高级设置
 * @param data
 * @returns
 */
export const settingProfessional = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/advanced-setting',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 收货人列表
 * @param data
 * @returns
 */
export const getConsigneeList = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/consignee/list',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 获取用户行为列表
 * @param data
 * @returns
 */
export const getBehaviorList = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/behavior/list',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 同步店铺用户
 * @param data
 * @returns
 */
export const syncUser = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/sync',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 同步店铺用户行为
 * @param data
 * @returns
 */
export const syncUserBehavior = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/behavior/sync',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 导出 用户数据
 * @param data
 * @returns
 */
export const exportUserData = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/export',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 导出 用户行为数据
 * @param data
 * @returns
 */
export const exportUserBehaviorData = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/behavior/export',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 批量导出
 * @param data
 * @returns
 */
export const exportConsigneeData = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/consignee/batch-import',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 导出所有
 * @param data
 * @returns
 */
export const exportAllData = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/consignee/import',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 批量分配员工
 * @param data
 * @returns
 */
export const batchAssignStaff = (data: any) => {
    return request({
        url: '/scrm-api/console/customer/batch-assign-staff',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 获取高级设置
 * @param data
 * @returns
 */
export const getAdvancedSetting = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/get-advanced-setting',
        method: 'GET',
        params: data
    });
};

/**
 * 用户管理 是否可以获取用户行为数据
 * @param data
 * @returns
 */
export const getBehaviorSync = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/user/behavior/is-sync',
        method: 'GET',
        params: data
    });
};

/**
 * 用户管理 是否开通应用
 * @param data
 * @returns
 */
export const getStoreSync = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/shop/is-open-application',
        method: 'GET',
        params: data
    });
};

/**
 * 用户管理 直接同步
 * @param data
 * @returns
 */
export const synchronous = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/consignee/sync',
        method: 'POST',
        data
    });
};

/**
 * 用户管理 高级同步
 * @param data
 * @returns
 */
export const synchronousPro = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/consignee/advance-sync',
        method: 'POST',
        data
    });
};

/**
 * 达人用户列表
 * @param data
 * @returns
 */
export const getWiseManUserList = (data: any) => {
    return request({
        url: '/scrm-api/console/retail/daren/user/list',
        method: 'POST',
        data
    });
};
